var time = {};

time.timestatus=function (starttime, endtime) {
  var starttimestatus = (Date.parse(starttime) - Date.parse(new Date())) / 1000;

  if (starttimestatus >= 0) {
    return "unstart";
  } else {
    var endtimestatus = (Date.parse(endtime) - Date.parse(new Date())) / 1000;


    if (endtimestatus <= 0) {
      return "end";
    } else {
      return "ing";
    }
  }
}

module.exports = time
